.text
.global main
.type main, @function
main:
.BEGIN:
	addi sp, sp, -32
	sd ra, 24(sp)
	sd s0, 16(sp)
	addi s0, sp, 32
.B1:
	li t0, 0
	sw t0, -20(s0)
.B2:
	lw t0, -20(s0)
	li t1, 10
	beq t0, t1, .B3
	lw t0, -20(s0)
	li t1, 1
	add t0, t0, t1
	sw t0, -20(s0)
	j .B2
.B3:
	lw t0, -20(s0)
	mv a0, t0
	j .END
.END:
	ld ra, 24(sp)
	ld s0, 16(sp)
	addi sp, sp, -32
	ret
